<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div id="loginFormWrapper">
	<div id="loginForm">
		<h3>Log in to moviereminder</h3>
	
		<form method='post' action='<c:url value="/processlogin"/>'>
			<p>
				<label for="j_username">Username:</label>
				<input class="cleanInput focusOnPageLoad" name="j_username" id="j_username" />
			</p>
			<p>
				<label for="j_password">Password:</label>
				<input class="cleanInput" type="password" name="j_password" id="j_password" />
			</p>
		
			<p>
				<input type="checkbox" name="_spring_security_remember_me" id="j_remember_me"/>
				<label for="j_remember_me">Remember me</label>
			</p>
			
			<c:if test="${param.error == 'failed'}">
				<p><span class="loginError">Login failed, check your input for error.</span></p>
			</c:if>
			<p style="text-align:right;"><input type="submit" class="submit"  value="login" /></p>
		</form>
		
		<hr/>
		
		<h3>Create a new account</h3>
		<a href="${baseUrl}/register">Click here to register</a>
	</div>
</div>